package com.group4.Utility;

import java.util.Random;

public class ActivationKeyGenerator {
	
	public static String createKey(){
		Random rand = new Random();
		String activationKey = "";
		for(int i = 0; i < 20; i++){
			int x = rand.nextInt(3);
			if(x == 0){
				activationKey+=rand.nextInt(10);
			}
			else if(x == 1){
				activationKey+=(char)(rand.nextInt(26)+65);
			}
			else{
				activationKey+=(char)(rand.nextInt(26)+97);
			}
		}
		return activationKey;
	}
}
